//
//  RegViewController.m
//  TextApplication
//
//  Created by dllo on 16/8/27.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "RegViewController.h"
#import "LoginViewController.h"
#import "PersonalViewController.h"

@interface RegViewController ()
@property (nonatomic, strong) UIImageView *backImageView;


@end

@implementation RegViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationController.navigationBar.barTintColor = [UIColor blackColor];
   
    self.backImageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
    self.backImageView.image = [UIImage imageNamed:@"35"];
    [self.view addSubview:self.backImageView];
    
    UIButton *right = [UIButton buttonWithType:UIButtonTypeCustom];
    right.frame = CGRectMake(self.view.bounds.size.width - 40, 35, 20, 20);
    [right setImage:[UIImage imageNamed:@"6"] forState:UIControlStateNormal];
    [right addTarget:self action:@selector(backPerson:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:right];


    
}



- (void)backPerson:(UIButton *)button {
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
